(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "maishu-jueying", "./component", "components/common/custom-prop-editors", "./items-editor"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    const maishu_jueying_1 = require("maishu-jueying");
    const component_1 = require("./component");
    const custom_prop_editors_1 = require("components/common/custom-prop-editors");
    const items_editor_1 = require("./items-editor");
    let autoplay = "autoplay";
    maishu_jueying_1.Component.setPropEditor({
        displayName: "自动播放",
        componentType: component_1.Carousel.name,
        propName: autoplay,
        editorType: custom_prop_editors_1.toggle({ defaultValue: component_1.Carousel.defaultProps.autoplay })
    });
    let items = "items";
    maishu_jueying_1.Component.setPropEditor({
        displayName: "轮播图片",
        componentType: component_1.Carousel.name,
        propName: items,
        editorType: items_editor_1.ItemsEditor
    });
});
